package com.quanyan.alipay.protocal;

import com.quanyan.alipay.sign.RSA;
import com.quanyan.alipay.sign.SignUtils;
import com.quanyan.common.utils.StringUtil;

import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.net.URLEncoder;

/**
 * Created by Zheng.Ke
 * 参见文档https://doc.open.alipay.com/docs/doc.htm?spm=a219a.7629140.0.0.zFsn5v&treeId=60&articleId=104790&docType=1
 * Date 2016/12/13.
 */
public class AliPayH5ReqData {
    private String service = "alipay.wap.create.direct.pay.by.user"; //接口名称。固定值。
    private String _input_charset = "UTF-8";
    private String partner;//签约的支付宝账号对应的支付宝唯一用户号。以2088开头的16位纯数字组成。
    private String sign_type = "RSA";
    private String sign; //参数签名.
    private String notify_url;
    private String return_url;
    private String out_trade_no; //支付宝合作商户网站唯一订单号。
    private String subject; //商品名称
    private String seller_id;
    private String total_fee; //总金额. 精确到小数点后两位. 0.01
    private String payment_type = "1";
    private String show_url;
    private String body; //商品详情
    private String app_pay = "Y";
    private String it_b_pay; //超时时间 2014-06-13 16:00:00


    public AliPayH5ReqData(String partner, String out_trade_no, String subject, String seller_id, String total_fee, String show_url, String body, String it_b_pay) {
        this.partner = partner;
        this.out_trade_no = out_trade_no;
        this.subject = subject;
        this.seller_id = seller_id;
        this.total_fee = total_fee;
        this.show_url = show_url;
        this.body = body;
        this.it_b_pay = it_b_pay;
    }

    public String getApp_pay() {
        return app_pay;
    }

    public void setApp_pay(String app_pay) {
        this.app_pay = app_pay;
    }

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String get_input_charset() {
        return _input_charset;
    }

    public void set_input_charset(String _input_charset) {
        this._input_charset = _input_charset;
    }

    public String getPartner() {
        return partner;
    }

    public void setPartner(String partner) {
        this.partner = partner;
    }

    public String getSign_type() {
        return sign_type;
    }

    public void setSign_type(String sign_type) {
        this.sign_type = sign_type;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getNotify_url() {
        return notify_url;
    }

    public void setNotify_url(String notify_url) {
        this.notify_url = notify_url;
    }

    public String getReturn_url() {
        return return_url;
    }

    public void setReturn_url(String return_url) {
        this.return_url = return_url;
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public void setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getSeller_id() {
        return seller_id;
    }

    public void setSeller_id(String seller_id) {
        this.seller_id = seller_id;
    }

    public String getTotal_fee() {
        return total_fee;
    }

    public void setTotal_fee(String total_fee) {
        this.total_fee = total_fee;
    }

    public String getPayment_type() {
        return payment_type;
    }

    public void setPayment_type(String payment_type) {
        this.payment_type = payment_type;
    }

    public String getShow_url() {
        return show_url;
    }

    public void setShow_url(String show_url) {
        this.show_url = show_url;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getIt_b_pay() {
        return it_b_pay;
    }

    public void setIt_b_pay(String it_b_pay) {
        this.it_b_pay = it_b_pay;
    }
}
